﻿using MyCommon;
using MyIServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyServices
{
    public class TestAopService : ITestAopService
    {
        [Caching]
        public string TestAop()
        {
           // File.ReadAllText("./log.txt");
            return "TestAOP";
        }
        [Caching]
        public async Task<string> TestAsyncAop()
        {
            string path = Path.Combine(@"F:\wjaProject\SqlSugarTest\SqlSugarTestDemo\MyApi\Logs\Logs", "Log20241025.txt");
            var txt = await File.ReadAllTextAsync(path);
            return txt;
        }
    }
}
